package com.example.config;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hx
 * @create 2022/5/7 11:17
 * description:
 */
@Configuration
@MapperScan("com.example.mapper")
public class CmnConfig {
    ///**
    // * 3.4.0之后版本
    // * @return
    // */
    //@Bean
    //public MybatisPlusInterceptor mybatisPlusInterceptor(){
    //    MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
    //    mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
    //    return mybatisPlusInterceptor;
    //}
}
